package com.ruoyi.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName blog_category
 */
@Data
@TableName(value ="blog_category")
public class BlogCategory implements Serializable {
    /**
     * 文章类型id
     */
    @TableId(value = "bc_id", type = IdType.AUTO)
    private Long bcId;

    /**
     * 分类类型名称
     */
    @TableField(value = "bc_name")
    private String bcName;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;


    @TableField(value = "status")
    private Integer status;

    /**
     * 
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}